/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ManagerInfoFrame.java
 *
 * Created on 2011-8-21, 15:45:56
 */
package scau.jump.securitytrace.client; 

import java.awt.CardLayout;

/**
 *
 * @author Administrator
 */
public class ManagerInfoWindow extends javax.swing.JFrame {

	private static final long serialVersionUID = -1994105136852058596L;
	/** Creates new form ManagerInfoFrame */
    public ManagerInfoWindow() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSeparator1 = new javax.swing.JSeparator();
        topTitleLabel = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        mainTree = new javax.swing.JTree();
        mainCardPanel = new javax.swing.JPanel();
        cardLayout = new CardLayout();
        userPanel = new UserPanel();
        rolePanel = new RolePanel();
        productPanel = new ProductPanel();
        addressPanel = new AddressPanel();
        
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setLocationByPlatform(true);
        setResizable(false);

        topTitleLabel.setFont(new java.awt.Font("宋体", 1, 18));
        topTitleLabel.setText("信   息   管   理   系   统");

        jScrollPane1.setViewportView(mainTree);

        mainCardPanel.setLayout(cardLayout);
		
        mainCardPanel.add(userPanel, "userPanel");
        mainCardPanel.add(rolePanel, "rolePanel");
        mainCardPanel.add(productPanel,"productPanel");
        mainCardPanel.add(addressPanel,"addressPanel");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 816, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(mainCardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(270, 270, 270)
                .addComponent(topTitleLabel)
                .addContainerGap(282, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addComponent(topTitleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(mainCardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel topTitleLabel;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    protected javax.swing.JPanel mainCardPanel;
    protected CardLayout cardLayout;
    protected javax.swing.JTree mainTree;
    protected UserPanel userPanel;
    protected RolePanel rolePanel;
    protected ProductPanel productPanel;
    protected AddressPanel addressPanel;
    // End of variables declaration//GEN-END:variables
	public UserPanel getUserPanel() {
		return userPanel;
	}
	public RolePanel getRolePanel() {
		return rolePanel;
	}
	public ProductPanel getProductPanel() {
		return productPanel;
	}
	public AddressPanel getAddressPanel() {
		return addressPanel;
	}
}
